﻿using CloudMusic.Model;
using DMSkin.Core.MVVM;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;

namespace CloudMusic.Helper
{
    public class PlayListHelper
    {
        #region 播放列表

        /// <summary>
        /// 播放主列表
        /// </summary>
        private static ObservableCollection<PlayModel> mainMusicList;

        public static ObservableCollection<PlayModel> MainMusicList
        {
            get
            {
                if (mainMusicList == null)
                {
                    mainMusicList = new ObservableCollection<PlayModel>();
                }
                return mainMusicList;
            }
            set { mainMusicList = value; }
        }
        #endregion

        #region 用户信息
        private static ObservableCollection<userInfo> userInfos;
        public static ObservableCollection<userInfo> UserInfos
        {
            get
            {
                if (userInfos == null)
                {
                    userInfos = new ObservableCollection<userInfo>();
                }
                return userInfos;
            }
            set { userInfos = value; }
        }
        #endregion 

        #region 用户收藏和喜欢的歌单
        private static ObservableCollection<StoreListModel> storeList;
        public static ObservableCollection<StoreListModel> StoreList
        {
            get
            {
                if (storeList == null)
                {
                    storeList = new ObservableCollection<StoreListModel>();
                }
                return storeList;
            }
            set { storeList = value; }
        }
        #endregion

        #region 用户喜欢列表
        private static ObservableCollection<LikesIdModel> userLikes;
        public static ObservableCollection<LikesIdModel> UserLikes
        {
            get
            {
                if (userLikes == null)
                {
                    userLikes = new ObservableCollection<LikesIdModel>();
                }
                return userLikes;
            }
            set { userLikes = value; }
        }
        #endregion
    }
}
